package com.example.mypotiota_si.Initainalper;

import android.os.Bundle;
import android.widget.Toast;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.example.mypotiota_si.Tool.Tools;

import cn.bmob.v3.Bmob;

public abstract class InitenActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        if(Tools.isNetworkConnected(this)){
            Bmob.initialize(this,"e3bb778731785e9ea774709c6fa6913e");
        }else{
            Toast.makeText(this, "请保证在完全网络下运行", Toast.LENGTH_SHORT).show();
        }

    }

    public abstract void onPagerTouch(boolean isTouch);
}
